/*
	@file: log/include/formatter/DatetimeFormatter.h
	@author: Wolfhead
 */
#ifndef _LOG_DATETIME_FORMATTER_H_
#define _LOG_DATETIME_FORMATTER_H_

#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "Formatter.h"


namespace logger
{

class DatetimeFormatter
	: public Formatter
{
public:
	DatetimeFormatter(const std::string format);

	void do_format(
		LogDataPtr data_ptr,
		std::string & output);

private:
	std::string m_format;
};

}

#endif // #ifndef _LOG_DATETIME_FORMATTER_H_
